<%@ WebHandler Language="C#" Class="Zipcode" %>

using System;
using System.Web;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using Newtonsoft.Json;

public class Zipcode : IHttpHandler {

    private string dbConn = "";
    
    public void ProcessRequest (HttpContext context) {
        if (context.Request.Params["zipcode"] != null)
        {
            ZipCode zip = new ZipCode();
            zip.zipcode = context.Request.Params["zipcode"];
            zip.State = "FL";
            zip.Lng = "0.0";
            zip.Lat = "0.0";
            zip.County = "Clay";
            zip.City = "Orange Park";

            string json = JavaScriptConvert.SerializeObject(zip);

            context.Response.Write(json);

            return;
        }
    }
 
    public bool IsReusable {
        get {
            return false;
        }
    }

    public class ZipCode
    {

        public string zipcode;
        public string State;
        public string City;
        public string County;
        public string Lat;
        public string Lng;
        
    }

}